/*
 * @Author: WangGuojian 1085844536@qq.com
 * @Date: 2022-10-14 11:38:56
 * @LastEditTime: 2022-10-14 13:18:11
 * @LastEditors: WangGuojian 1085844536@qq.com
 * @FilePath: \umijs\src\layouts\index.tsx
 * @Description:
 */
import React from 'react'
import {NavLink} from 'umi'
import './index.less'

export default function index(props: any) {
    return (
        <div>
            <h2>Header</h2>
            {/* <Link to='/user/one'>用户1</Link>
          <Link to='/user/two'>用户2</Link> */}

            <hr/>

            <NavLink to='/user/one'>用户1</NavLink>
            <NavLink to='/user/two'>用户2</NavLink>

            {props.children}
            <h2>Footer</h2>
        </div>
    )
}
